package node_category

import (
	"time"
)

// 表名也是cache的tag
var TableName = "node_category"

type NodeCategory struct {
	Id        int64  `xorm:"pk autoincr"`
	Pid       int64  `xorm:"integer(11) index default(0) 'pid'"`
	Title     string `xorm:"varchar(64) notnull 'title'"`
	Slug      string `xorm:"varchar(64) unique(slug) notnull 'slug'"`
	Sort      int    `xorm:"integer unique(slug) notnull 'sort'"`
	NodeCount int64  `xorm:"integer null default(0) 'node_count'"`

	Status    bool      `xorm:"BOOL default(0) 'status'"`
	CreatedAt time.Time `xorm:"notnull created 'created_at'"`
}
